﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction 
    Id="Ribbon.MoveItems" 
    Location="CommandUI.Ribbon"
    RegistrationType="ContentType" 
    RegistrationId="0x012004"
    >
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.ListItem.Actions.Controls._children">
          <Button Id="Ribbon.MoveItems.Button"
                  Command="MoveItems"
                  CommandType="General"
                  Sequence="5"
                  Image16by16="/_layouts/images/menudatabase.gif"
                  Image32by32="/_layouts/images/menudatabase.gif"
                  Description="$Resources:MoveItemBetweenFolders,RibbonDesc"
                  LabelText="$Resources:MoveItemBetweenFolders,RibbonLabel"
                  ToolTipDescription="$Resources:MoveItemBetweenFolders,RibbonToolTipDesc"
                  ToolTipTitle="$Resources:MoveItemBetweenFolders,RibbonToolTipTitle"
                  TemplateAlias="o1"/>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
              Command="MoveItems"
              CommandAction="javascript:openDialog();"
              EnabledScript="javascript:makeAvailable();"/>
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>

  <CustomAction ScriptSrc="/_layouts/MoveItemBetweenFolders/MoveItemScripts.js" Location="ScriptLink" Sequence="101"></CustomAction>
</Elements>
